calculating fwhm for xrd peaks